package com.whenjun.dto.account;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @Auther: shirley
 * @Date: 2023/8/6 12:36
 * @Description:
 */
@Data
public class AccountUpd implements Serializable {

    @NotEmpty(message = "id为空")
    @ApiModelProperty(value = "用户id",required = true)
    private String id;

    @Length(min=5, max=18,message = "密码长度错误，需为 5 - 18 位")
    @ApiModelProperty(value = "密码, 长度 5 - 18位",required = false)
    private String password;


    @ApiModelProperty(value = "权限信息",required = false)
    private List<AuthPermissionDTO> authPermissions;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("昵称")
    private String nickname;
}
